<?php

#doc
#    classname:    QmainController
#    scope:        PUBLIC
#
#/doc

class QmainController extends Controller
{
	
	public function filters()
		{
			return array(
	              'accessControl',
			);
		}
	
		public function accessRules()
		{
			return array(
				array('allow',
	                'actions'=>array('index'),
	                'roles'=>array('admin'),
			),
			
			array('deny',
	                'actions'=>array('index'),
	                'users'=>array('*'),
			),
			);
		}
	
	#	internal variables for layout
	public $layout="application.views.layouts.admin";
	
	#	variable for current sidebar-list position
	//public $current="main";
    /**
     * 
     * function for main admin page
     */
     public function actionIndex()
     {
         $this->render("application.views.qmain.index");
     }

}

?>
